.class Lcom/waiqin365/lightwork/directory/b;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightwork/directory/b;->a:Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 6

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/b;->a:Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;->a(Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;)Landroid/widget/ListView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/ListView;->getHeaderViewsCount()I

    move-result v0

    sub-int v1, p3, v0

    new-instance v2, Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/b;->a:Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;->b(Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;)Landroid/content/Context;

    move-result-object v0

    const-class v3, Lcom/waiqin365/lightwork/directory/DirectoryPersonnelDetailsActivity;

    invoke-direct {v2, v0, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v3, "id"

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/b;->a:Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;->c(Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/c;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->a:Ljava/lang/String;

    invoke-virtual {v2, v3, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v3, "name"

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/b;->a:Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;->c(Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/c;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->b:Ljava/lang/String;

    invoke-virtual {v2, v3, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/b;->a:Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;->b(Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;)Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/waiqin365/base/db/offlinedata/m;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/m;

    move-result-object v3

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/b;->a:Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;->c(Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/c;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->g:Ljava/lang/String;

    invoke-virtual {v3, v0}, Lcom/waiqin365/base/db/offlinedata/m;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string/jumbo v3, "department"

    invoke-virtual {v2, v3, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v3, "emp_position"

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/b;->a:Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;->c(Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/c;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->j:Ljava/lang/String;

    invoke-virtual {v2, v3, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v3, "phone"

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/b;->a:Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;->c(Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/c;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->d:Ljava/lang/String;

    invoke-virtual {v2, v3, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v3, "tel"

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/b;->a:Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;->c(Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/c;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->e:Ljava/lang/String;

    invoke-virtual {v2, v3, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v3, "pic_url"

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/b;->a:Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;->c(Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/c;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->l:Ljava/lang/String;

    invoke-virtual {v2, v3, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v0

    iget-object v3, p0, Lcom/waiqin365/lightwork/directory/b;->a:Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;

    invoke-static {v3}, Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;->b(Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;)Landroid/content/Context;

    move-result-object v3

    invoke-virtual {v0, v3}, Lcom/waiqin365/base/login/mainview/a;->i(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v3

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/b;->a:Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;->c(Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/c;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->a:Ljava/lang/String;

    invoke-virtual {v3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    const-string/jumbo v0, "0"

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v3

    iget-object v4, p0, Lcom/waiqin365/lightwork/directory/b;->a:Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;

    invoke-static {v4}, Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;->b(Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;)Landroid/content/Context;

    move-result-object v4

    invoke-virtual {v3, v4}, Lcom/waiqin365/base/login/mainview/a;->c(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    const-string/jumbo v3, "1"

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/b;->a:Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;->c(Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/c;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->n:Ljava/lang/String;

    invoke-virtual {v3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1

    :cond_0
    const-string/jumbo v0, "sendable"

    const/4 v3, 0x0

    invoke-virtual {v2, v0, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    :cond_1
    const-string/jumbo v3, "toChatUsername"

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v4

    iget-object v5, p0, Lcom/waiqin365/lightwork/directory/b;->a:Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;

    invoke-static {v5}, Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;->b(Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;)Landroid/content/Context;

    move-result-object v5

    invoke-virtual {v4, v5}, Lcom/waiqin365/base/login/mainview/a;->k(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v4, "_"

    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/b;->a:Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;->c(Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/c;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->a:Ljava/lang/String;

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v3, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/b;->a:Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;->startActivity(Landroid/content/Intent;)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/b;->a:Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;

    const v1, 0x7f040022

    const v2, 0x7f040021

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/lightwork/directory/DirectorSearchActivity;->overridePendingTransition(II)V

    return-void
.end method
